export default {
  /**
   * 任务管理涉及的接口-----------------------------------------------------------------------------
   *
   */

  /**
   * 04040001---任务列表
   * /maintain/maintaintask/list
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  taskCode              任务编号
   * @param  {string}  taskName              任务名称
   * @param  {array}   beginTime             开始时间 数组[起始时间，结束时间]，例[1515554892000,1515554892000]
   * @param  {string}  maintenanceId         维保单位
   * @param  {string}  maintainManId         养护人
   *
   */
  "POST /maintain/maintaintask/list": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            taskId:"1",
            taskCode: "0023232322",
            taskName: "001",
            maintenanceName: "海康威视",
            maintainManName:"养护人",
            inspector: "张三",
            beginTime: 1515554892000,
            endTime: 1515554892000,
            creator: "Rocky Fan",
            status:"01",
            allTaskDevCount:20,
            signTaskDevCount:5,
          },
          {
            taskId:"2",
            taskCode: "0023232311",
            taskName: "001",
            maintenanceName: "海康威视",
            maintainManName:"养护人",
            inspector: "张三",
            beginTime: 1515554892000,
            endTime: 1515554892000,
            creator: "Rocky Fan",
            status:"02",
            allTaskDevCount:15,
            signTaskDevCount:5,
          }
        ]
      }
    });
  },


  /**
   * 04040002---新增任务
   * /maintain/maintaintask/save
   * @param  {string}  taskCode              任务编号（废除）
   * @param  {string}  taskName              任务名称
   * @param  {string}  maintenanceId         维保单位
   * @param  {number}  beginTime             开始时间
   * @param  {number}  endTime               结束时间
   * @param  {string}  remarks               备注
   * @param  {string}  maintainManId         巡检人id
   * @param  {array}   devIds                养护点
   */
  "POST /maintain/maintaintask/save": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },

  /**
   * 04040003---任务编辑
   * /maintain/maintaintask/update
   * @param  {string}  taskCode              任务编号（废除）
   * @param  {number}  taskName              任务名称
   * @param  {string}  maintenanceId         维保单位
   * @param  {number}  beginTime             开始时间
   * @param  {number}  endTime               结束时间
   * @param  {number}  maintainManId         巡检人id
   * @param  {number}  remarks               备注
   * @param  {array}   devIds                养护点
   */
  "POST /maintain/maintaintask/update": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0"
    });
  },



  /**
   * 04040004---历史任务列表
   * /maintain/maintaintask/queryHisList
   * @param  {number}  currentPage           当前页
   * @param  {number}  pageSize              每页显示数量
   * @param  {string}  taskCode              任务编号
   * @param  {string}  taskName              任务名称
   * @param  {array}   beginTime             开始时间 数组[起始时间，结束时间]，例[1515554892000,1515554892000]
   * @param  {string}  maintenanceId         维保单位
   * @param  {string}  maintainManId         养护人
   * @param  {string}  planCode              计划编号
   * @param  {string}  planName              计划名称
   *
   */
  "POST /maintain/maintaintask/queryHisList": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data: {
        pagination: {
          current: 1,
          pageSize: 30,
          total: 40
        },
        list: [
          {
            taskId:"1",
            taskCode: "0023232322",
            taskName: "001",
            planCode: "0023232322",
            planName: "001",
            maintenanceName: "海康威视",
            maintainManName:"养护人",
            beginTime: 1515554892000,
            signTime: 1515554892000,
          },
          {
            taskId:"2",
            taskCode: "0023232311",
            taskName: "001",
            planCode: "0023232322",
            planName: "001",
            maintenanceName: "海康威视",
            maintainManName:"养护人",
            beginTime: 1515554892000,
            signTime: 1515554892000,
          }
        ]
      }
    });
  },





  /**
   * 04040005---任务详情
   * /maintain/maintaintask/info/{taskId}
   * @param  {string}  taskId          任务id
   *
   */
  "POST /04040005": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        taskId:"1",
        taskCode: "00232323",
        taskName: "001",
        planCode: "00232323",
        planName: "001",
        planType:"01",
        beginTime: 1515554892000,
        endTime: 1515554892000,
        maintenanceId: "1",
        maintenanceName: "海康威视",
        remarks:"备注",
        creator:"创建人",
        maintainManId:"1",
        maintainManName:"巡检人",
      }
    });
  },


  /**
   * 04040006---任务相关设备信息
   * /maintain/maintaintask/queryTaskDevs
   * @param  {string}  taskId      任务id
   *
   */
  "POST /maintain/maintaintask/queryTaskDevs": (req, res) => {
    res.send({
      trace_id: "15d9733dc1fe4072005ac112a01717a",
      request_id: "15d9733dc1fe4772002ac112a01715c",
      error_info: "执行成功",
      error_no: "0",
      data:{
        list:[{
          devId: "001",
          devCode: "001",
          devName: "网络摄像头1",
          districtName: "滨江区",
          pointName: "具体点位",
          deviceStatus: "01",
          signTime: 1515554892000,
        },{
          devId: "002",
          devCode: "002",
          devName: "网络摄像头2",
          districtName: "滨江区",
          pointName: "具体点位",
          deviceStatus: "02",
          signTime: 1515554892000,
        },{
          devId: "003",
          devCode: "003",
          devName: "网络摄像头3",
          pointName: "具体点位3",
          districtName: "滨江区",
          deviceStatus: "03",
          signTime:1515554892000
        },]

      }
    });
  },



};
